package cn.aws360.boot.system.biz.domain;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.*;

import java.io.Serializable;

/**
 * @author junnan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_user_third")
@EqualsAndHashCode(callSuper = false)
public class SysUserThird implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统用户ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 三方用户ID
     */
    @TableField("uuid")
    private String uuid;

    /**
     * 用户来源
     */
    @TableField("source")
    private String source;

    /**
     * 三方原始信息
     */
    @TableField(value = "raw_user_info", typeHandler = FastjsonTypeHandler.class)
    private JSONObject rawUserInfo;

}
